var openDialog;

$(function() {
	
	var dialog = $("#dialog").dialog({
		autoOpen:false,
		width:400,
		height:300,
		minWidth:400,
		minHeight:300,
		resizable:false
	});
	
	function _openDialog(url){
		$("#frm").attr("src", url+"&next=/redirect_parent?next="+location.href);
		dialog.dialog("open");
	}
	openDialog = _openDialog;
});

function del_confirm(url){
	if(confirm("确认删除?")){
		location.href = url;
	}
}